From: Richard M. Stallman Date: Sat, 11 Jun 1994 21:53:09 +0000 (+0000) Subject: (Freplace_match): Be sure not to treat non-digit like digit. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~91206 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=784450462fee3c4ecf4511aaf5be30d8a25899f5;p=emacs.git (Freplace_match): Be sure not to treat non-digit like digit. --- diff --git a/src/search.c b/src/search.c index b0e2b1f919d..b4ef3229ac2 100644 --- a/src/search.c +++ b/src/search.c @@ -1273,7 +1273,7 @@ Leaves point at end of replacement text.") (Fcurrent_buffer (), make_number (search_regs.start[0] + offset), make_number (search_regs.end[0] + offset)); - else if (c >= '1' && c <= search_regs.num_regs + '0') + else if (c >= '1' && c <= '9' && c <= search_regs.num_regs + '0') { if (search_regs.start[c - '0'] >= 1) Finsert_buffer_substring